package MercuryTour;

import java.io.File; 
import java.io.IOException;
import jxl.*; 
import jxl.read.biff.BiffException;
public class ReadExcelPractice {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws BiffException 
	 */
	public static void main(String[] args) throws BiffException, IOException {
		
			File inputFile = new File ("c:/test.xls");
			Workbook workbook = Workbook.getWorkbook(inputFile);
			Sheet sheet = workbook.getSheet(0);
			Cell cells;
	
			int sizeOfArray = sheet.getColumns();
			String[] row = new String[sizeOfArray];
			
			for(int i=0;i<sheet.getRows();i++)
				
			{
				for (int j=0;j<sheet.getColumns();j++)
				{
				cells = sheet.getCell(j,i);
				row[j] = cells.getContents();
				System.out.print(row[j]);
				}
				System.out.print("\n");
			}
			}
	
		}

	


